var pid_share = -1;

function show_share_modal(pid){
	pid_share = pid;
	$('#refer-feed').html($('#feed-area-'+pid).html());
	$("#modal-share").modal({
	    backdrop:true,
	    show:true
	});
}

function share_feed(){
	$.post('/MyMicroBlog/index.php/feed/share',{
		pid:pid_share,
		reason:$('#input-share-reason')[0].value,
		bid:$("#share-blog-id").val(),
	},function(result){
		//window.location.reload();
		reloadMain();
	});
}